package top.infopub.model.flow;


import java.util.Date;
import java.util.List;

import top.infopub.generic.GenericEntity;


/** 工作流模板节点(FLOW_TEMPLATE_NODE) **/
public class TemplateNode extends GenericEntity {

    private static final long serialVersionUID = 1L;

    /*PK*/
    private String id;

    /*PK*/
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /* 添加人 */
    private String addBy;

    public String getAddBy() {
        return addBy;
    }

    public void setAddBy(String addBy) {
        this.addBy = addBy;
    }

    /* 添加时间 */
    private Date addTime;

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /* 审批部门ID  预留字段 */
    private String checkDeptId;

    public String getCheckDeptId() {
        return checkDeptId;
    }

    public void setCheckDeptId(String checkDeptId) {
        this.checkDeptId = checkDeptId;
    }

    /* 审批人ID  对应sys_operator 发起人节点写-1 */
    private String checkUserId;

    public String getCheckUserId() {
        return checkUserId;
    }

    public void setCheckUserId(String checkUserId) {
        this.checkUserId = checkUserId;
    }

    /* 备注 */
    private String memo;

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    /* 后一个节点ID  预留字段 */
    private String nextNodeId;

    public String getNextNodeId() {
        return nextNodeId;
    }

    public void setNextNodeId(String nextNodeId) {
        this.nextNodeId = nextNodeId;
    }

    /* 节点索引  需严格按照从1开始连续递增 */
    private Integer nodeIdx;

    public Integer getNodeIdx() {
        return nodeIdx;
    }

    public void setNodeIdx(Integer nodeIdx) {
        this.nodeIdx = nodeIdx;
    }

    /* 节点名称 */
    private String nodeName;

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    /* 前一个节点ID  预留字段 */
    private String preNodeId;

    public String getPreNodeId() {
        return preNodeId;
    }

    public void setPreNodeId(String preNodeId) {
        this.preNodeId = preNodeId;
    }

    /* 对应业务表单表名 */
    private String srcBizTable;

    public String getSrcBizTable() {
        return srcBizTable;
    }

    public void setSrcBizTable(String srcBizTable) {
        this.srcBizTable = srcBizTable;
    }

    /* 模板表ID */
    private String templateId;

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    /* 节点权限 1=审批 2=知会 默认1 */
    private Integer nodePolicy;

    public Integer getNodePolicy() {
        return nodePolicy;
    }

    public void setNodePolicy(Integer nodePolicy) {
        this.nodePolicy = nodePolicy;
    }

    /* 节点选择标识 1=固定人员 2=本部门内 3=本公司内 4=上级区域公司 5=总部公司    */
    private Integer routeFlag;

    public Integer getRouteFlag() {
        return routeFlag;
    }

    public void setRouteFlag(Integer routeFlag) {
        this.routeFlag = routeFlag;
    }

    /* 标识为1时，为审批人ID ，对应sys_operator，发起人节点写-1  ；标识2-5时，对应岗位名称    */
    private String chooseKey;

    public String getChooseKey() {
        return chooseKey;
    }

    public void setChooseKey(String chooseKey) {
        this.chooseKey = chooseKey;
    }

    private List<TemplateNode> childList;

    public List<TemplateNode> getChildList() {
        return childList;
    }

    public void setChildList(List<TemplateNode> childList) {
        this.childList = childList;
    }
}
